import type { RecursiveRequired, Settings } from '#/global'
import settingsDefault from '@/settings.default'
import { merge } from '@/utils/object'
import { cloneDeep } from 'es-toolkit'

const globalSettings: Settings.all = {
  // 请在此处编写或粘贴配置代码
  menu: {
    mode: 'side',
    enableHotkeys: true,
  },
  tabbar: {
    enable: true,
    enableIcon: true,
    enableHotkeys: true,
  },
  copyright: {
    enable: true,
    dates: '2014-2025',
    company: '杉岩数据科技有限公司',
    beian: '粤ICP备12345678号',
  },
  layout: {
    enableMobileAdaptation: true,
  },
  toolbar: {
    navSearch: true,
  },
}

export default merge(globalSettings, cloneDeep(settingsDefault)) as RecursiveRequired<Settings.all>
